package cn.edu.pku.tools;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Output
{
  OutputStream out = null;

  public Output(FileOutputStream paramFileOutputStream)
  {
    this.out = paramFileOutputStream;
  }

  public Output(OutputStream paramOutputStream)
  {
    this.out = paramOutputStream;
  }

  public OutputStream getOuputStream()
  {
    return this.out;
  }

  public void write(byte[] paramArrayOfByte)
  {
    try
    {
      this.out.write(paramArrayOfByte);
      return;
    }
    catch (IOException localIOException)
    {
      localIOException.printStackTrace();
    }
  }
}